<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>

<h2 class="contentTitle">修改字段</h2>
<form method="post" action="${ctx}/sqlcolumn/update" class="required-validate pageForm" onsubmit="return validateCallback(this, dialogAjaxDone);">
	<input type="hidden" name="id" value="${sqlColumn.id}"/>
	<input type="hidden" name="sqlTable.id" size="36" value="${sqlColumn.sqlTable.id}" class="required" maxlength="8"/>
	<div class="pageFormContent" layoutH="97">
		<p>
			<label>字段名称:</label>
			<input type="text" name="colName" class="required alphanumeric" size="20" maxlength="100"  value="${sqlColumn.colName }"/>
		</p>
		<p>
			<label>字段类型:</label>
			<input type="text" name="colType" class="required" size="20" maxlength="50"  value="${sqlColumn.colType }"/>
		</p>		
		<p>
			<label>字段长度:</label>
			<input type="text" name="colSize" size="20" class="required" maxlength="8" value="${sqlColumn.colSize }"/>
		</p>
			<p>
			<label>是否主键:</label>
			<input type="text" name="colPrikey" class="required" size="20" maxlength="10" value="${sqlColumn.colPrikey }"/>
		</p>
		<p>
			<label>字段描述:</label>
			<input type="text" name="colDes" size="20" maxlength="200" value="${sqlColumn.colDes }"/>
		</p>	
		<p>
			<label>是否为空:</label>
			<input type="text" name="colNull" class="required" size="20" maxlength="10" value="${sqlColumn.colNull }"/>
		</p>	
		<p>
			<label>备注:</label>
			<input type="text" name="memo" size="20" maxlength="200" value="${sqlColumn.memo }"/>
		</p>
	</div>
			
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">确定</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</form>